<template>
	<view>
		<view class="bg-white padding">
			<view class="grid col-2 grid-square">
				<view class="bg-img textimg" v-for="(item,index) in avatar" :key="index" :style="[{ backgroundImage:'url(http://49.233.138.163:8080/ylzdjkfw/img/readimage?filename=' + item.yl_tplj + ')' }]">
					<view class="imgtext"><view>时间：{{item.yl_djsj}}</view><view>叶龄：{{item.yl_yl}}</view></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getdkylxqcx} from '../api/api.js'
	import uCharts from '../../common/u-charts/u-charts.js';
	var _self;
	var canvaLineA = null;
	export default {
		data() {
			return {
				cWidth: '',
				cHeight: '',
				pixelRatio: 1,
				avatar:[
				
				]
				};
			},
			onLoad(options) {
			            let data = options.parm; // 字符串转对象
						let parm={yl_bh:data}
						getdkylxqcx(parm,
						res=>{
							this.avatar=res.data.returnData.dkylxq
						}
						)
						
			},
			methods: {
				
			}
		}
</script>

<style>
	@import "../../colorui/main.css";
	@import "../../colorui/icon.css"; 
	/*样式的width和height一定要与定义的cWidth和cHeight相对应*/
	.qiun-charts {
		width: 100%;
		height: 500rpx;
		background-color: #FFFFFF;
	}
	
	.charts {
		width: 100%;
		height: 500rpx;
		background-color: #FFFFFF;
	}
	.td50 .td,.td50 .th{
		 width:50%;
		}
</style>
